package com.news.dao;

import com.news.entity.News;
import com.news.entity.User;

import java.util.List;

public interface NewsDao {
    int insertNews(News news);
    int updateNews(News news);
    int deleteNews(int id);
    int deleteNewsBatch(String[] ids);
    int deleteNewsBatch2(String[] ids);
    News selectOneNews(int id);
    List<News> selectNews(int offset, int pageSize, String name);
    int selectCount(String acct);
}
